﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ShowWorkPackages.aspx.cs" Inherits="Bitirme.Views.ShowWorkPackages" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<fieldset class="login">

        <p><asp:Label ID="ProjectNameLabel" runat="server" AssociatedControlID="" Font-Bold="true" Font-Size="Large">Proje Adı:</asp:Label>
        <asp:Label ID="ProjectName" runat="server" AssociatedControlID="" Font-Bold="true" Font-Size="Large"></asp:Label></p>
        <p><asp:Label ID="ProjeSubjectLabel" runat="server" AssociatedControlID="" Font-Bold="true" >Proje Konusu:</asp:Label>
        <asp:Label ID="ProjectSubject" runat="server" AssociatedControlID="" Font-Bold="true" ></asp:Label></p>
        <p><asp:Label ID="ProjeDetailLabel" runat="server" AssociatedControlID="" Font-Bold="true">Proje Detayları:</asp:Label>
        <asp:Label ID="ProjectDetail" runat="server" AssociatedControlID="" Font-Bold="true" ></asp:Label></p>
        <br>
        
        <legend>İş Paketleri</legend>
        <center>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetAllWorkPackagesByProjectID" TypeName="Bitirme.Controllers.WorkPackageHandler" OnSelecting="ObjectDataSource1_Selecting">
            <SelectParameters>
                <asp:Parameter Name="ProjectID" Type="Int32"/>  
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSource1" CssClass="GridStyle" GridLines="None"
            onRowCommand = "GridView1_OnRowCommand">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="No" SortExpression="ID" />
                <asp:BoundField DataField="Name" HeaderText="İsim" SortExpression="Name" />
                <asp:BoundField DataField="Subject" HeaderText="Konu" 
                    SortExpression="Subject" />
                <asp:ButtonField CommandName="delete" ButtonType="Button" Text="İş Paketini Sil" />
                <asp:ButtonField CommandName="update" ButtonType="Button" Text="Güncelle" />
                <asp:ButtonField DataTextField="PackageState" 
                    Text="Button" CommandName="changestate"/>
                <asp:BoundField DataField="PackageState" HeaderText="Aktiflik"
                   />

            </Columns>
            <RowStyle CssClass="RowStyle" />
            <EmptyDataRowStyle CssClass="EmptyRowStyle" />
            <PagerStyle CssClass="PagerStyle" />
            <SelectedRowStyle CssClass="SelectedRowStyle" />
            <HeaderStyle CssClass="HeaderStyle" />
            <EditRowStyle CssClass="EditRowStyle" />
            <AlternatingRowStyle CssClass="AltRowStyle" />
        </asp:GridView>


        </center>
        <p></p>
    </fieldset>
</asp:Content>
